package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.service.GenericException;
import com.alibaba.dubbo.rpc.service.GenericService;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.system.AdminLog;
import com.ms.p2p.provider.AdminLogProvider;
import com.ms.p2p.service.impl.AdminLogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */

@Service
public class AdminLogProviderImpl implements AdminLogProvider{
    @Autowired
    AdminLogServiceImpl adminLogServiceImpl;


    public void insert(AdminLog loginLog) {
        adminLogServiceImpl.insert(loginLog);

    }

    public List<AdminLog> findPager(String type, String begin_date, String end_date, PageBean page) {

       return  adminLogServiceImpl.findPager(type,begin_date,end_date,page);

    }

    public int findCount(String type, String begin_date, String end_date) {

         return   adminLogServiceImpl.findCount(type,begin_date,end_date);

    }


}
